/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor
 */
package demo.axitdn.physic;


/**
 * 
 * @author VAIO
 */
public class CircularMotion implements Force {
	Vector3f r0;
	Vector3f rr;
	public CircularMotion(Vector3f p,Vector3f vo,Vector3f o,float r, double t, float v) {
		r0=o;
		rr=p.subtract(r0);
		
	}
	
	public Vector3f getR() {
		return rr;
	}


	public void increase(double t, float d, float util) {
		
	}

	public void decrease(double t, float d, float util) {
			
	}

	public Vector3f ff(State state, double t) {
		// TODO Auto-generated method stub
		Vector3f f= new Vector3f();
		float cta=(float) Math.atan2(state.velocity.y,state.velocity.x);
		f.x=(float) Math.cos(cta+Math.PI/2);
		f.y=(float) Math.sin(cta+Math.PI/2);
		return f;
	}
}